@timeline-prefix-cls: "ant-timeline";
@timeline-color: #e9e9e9;
@component-background: #fff;
@primary-color: rgb(50, 150, 250);
@error-color: #f4333c;
@success-color: #6abf47;
@warning-color: #ffc600;
@disable-color: #D8D8D8;

.ant-timeline-dot-text {
  // width: 150px;
  display: inline-block;
  vertical-align: top;
  text-align: right;
  margin-right: 30px;
  width: 70px;
  margin-top: -5px;
}
.ant-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 20px;
  text-align: left;

  &-item {
    position: relative;
    padding: 0 0 12px;
    display: inline-block;
    list-style: none;
    margin: 0 0 0 115px;
    height: 170px;

    &-label {
      position: absolute;
      left: 0;
      top: 0;
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%);
    }

    &-tail {
      position: absolute;
      left: 6px;
      top: 0;
      height: 100%;
      border-left: 2px solid @timeline-color;
    }

    &-pending &-tail {
      display: none;
    }

    &-head {
      position: absolute;
      width: 16px;
      height: 16px;
      background-color: @component-background;
      border-radius: 100px;

      &:before,
      &:after {
        content: ' ';
        position: absolute;
        left: 0;
        right: 0;
        background: #fff;
      }
      &:before {
        top: -8px;
        height: 8px;
      }
      &:after {
        bottom: -12px;
        height: 12px;
      }
      &-blue {
        border-color: @primary-color;
        color: @primary-color;
        background-color: @primary-color;
      }
      &-orange {
        border-color: @warning-color;
        color: @warning-color;
        background-color: @warning-color;
      }
      &-red {
        border-color: @error-color;
        color: @error-color;
        background-color: @error-color;
      }
      &-green {
        border-color: @success-color;
        color: @success-color;
        background-color: @success-color;
      }
      &-gray {
        border-color: @disable-color;
        color: @disable-color;
        background-color: @disable-color;
      }
    }

    &-head-custom {
      position: absolute;
      text-align: center;
      width: 40px;
      left: -14px;
      line-height: 1;
      margin-top: 6px;
      border: 0;
      height: auto;
      border-radius: 0;
      padding: 3px 0;
      transform: translateY(-50%);
    }

    &-content {
      padding: 0 0 10px 24px;
      position: relative;
      top: -3px;
      text-align: left;
      margin-left: 20px;
      margin-top: -17px;
    }

    &-last {
      height: 130px;
      .ant-timeline-item-tail {
        border-left: 2px dotted @timeline-color;
        display: none;
      }
      .ant-timeline-item-content {
        min-height: 48px;
      }
    }
  }

  &&-pending &-item-last &-item-tail {
    display: block;
  }

  &-year {
    font-size: 30px;
    color: #7d8082;
    letter-spacing: 0;
    line-height: 30px;
  }
  &-date {
    font-size: 24px;
    color: #7d8082;
    letter-spacing: 0;
    line-height: 40px;
  }
}
